/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-24
 * Time:14:57
 */
public class TestDemo9 {
    public static void main(String[] args) {
        boolean flag=true;
        for (int i = 2; i < 100; i++) {
            flag=true;
            for (int j = 2; j < i; j++) {
                if(i%j==0){
                    flag=false;
                    break;
                }
            }
            if(flag==true){
                System.out.println(i+"是素数");
            }
        }
    }
}
